package day7;

import day5.chongwu.Dog;

/**
 * @author oldliu
 * @since 1.0
 */
public class TestOBj {
    public static void main(String[] args) {
        //Object o=new Dog("老黄",100,88,"田园犬");
        Object o=new Object();
        if(o instanceof Dog){
            Dog dog=(Dog)o;
            dog.show();
        }else{
            System.out.println("这不是一只狗！");
        }

    }
}
